package com.fauks.ssm.mybatis.mapper;

import com.fauks.ssm.mybatis.bean.MStudent;

import java.util.List;
import java.util.Map;

public interface IStudenDao {
    void insert(MStudent student);

    void insertAndGetId(MStudent student);

    void deleteById(int id);

    void update(MStudent student);

    List<MStudent> selectAllStudents();

    Map<String, Object> selectStudentsMap();

    MStudent selectStudentById(int id);

    List<MStudent> selectStudentByName(String name);

    MStudent selectStuByCondition(String name, String age);

    void updateByCondition(MStudent mStudent);
}
